Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: garm v0.1.5 #158

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

feat: garm v0.1.5 #158

wants to merge 21 commits into from

Conversation

rafalgalaw
Copy link
Collaborator

This PR attempts to implement the new set of changes and api changes garm requires for its version v0.1.5. This includes:

  • New Credentials API
  • New Endpoint API
  • Update Garm Server Config Urls via CR

PROJECT Outdated Show resolved Hide resolved
@rafalgalaw rafalgalaw marked this pull request as ready for review September 9, 2024 07:04
@@ -1,5 +1,3 @@
# SPDX-License-Identifier: MIT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add PROJECT to the list of generated files in the license-scanner-script:
https://github.com/mercedes-benz/garm-operator/blob/main/hack/verify-license.sh#L22

Copy link
Member

@bavarianbidi bavarianbidi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, let's introduce a new API group

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/mercedes-benz/garm-operator/pkg/util/conditions"
)

// EnterpriseSpec defines the desired state of Enterprise
type EnterpriseSpec struct {
CredentialsName string `json:"credentialsName"`
CredentialsRef corev1.TypedLocalObjectReference `json:"credentialsRef"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, let's introduce a new API version (e.g. v1beta1) to cover the change in the CredentialsRef with a conversion.

group: garm-operator
kind: GitHubCredentials
path: github.com/mercedes-benz/garm-operator/api/v1alpha1
version: v1alpha1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new API groups should be in v1beta1

group: garm-operator
kind: GitHubEndpoint
path: github.com/mercedes-benz/garm-operator/api/v1alpha1
version: v1alpha1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new API groups should be in v1beta1

group: garm-operator
kind: GarmServerConfig
path: github.com/mercedes-benz/garm-operator/api/v1alpha1
version: v1alpha1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new API groups should be in v1beta1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants